package com.cz073586.technology.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "city_info")
public class CityInfo {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "city_name")
    private String cityName;
    
    @Column(name = "nick_name")
    private String nickName;

    @Column(name = "city_introduce")
    private String cityIntroduce;
    
    @Column(name = "disclaimer")
    private String disclaimer;
    
    @Column(name = "is_close")
    private String isClose;
    
    @Column(name = "city_code")
    private String cityCode;
    
    
    
    public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getDisclaimer()
	{
		return disclaimer;
	}

	public void setDisclaimer(String disclaimer)
	{
		this.disclaimer = disclaimer;
	}

	public String getNickName()
	{
		return nickName;
	}

	public void setNickName(String nickName)
	{
		this.nickName = nickName;
	}

	public String getUuid() {
        return uuid;
    }

    public String getIsClose() {
		return isClose;
	}

	public void setIsClose(String isClose) {
		this.isClose = isClose;
	}

	public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName == null ? null : cityName.trim();
    }

    public String getCityIntroduce() {
        return cityIntroduce;
    }

    public void setCityIntroduce(String cityIntroduce) {
        this.cityIntroduce = cityIntroduce == null ? null : cityIntroduce.trim();
    }
}